package com.rice.apiproject.controller;

import com.rice.commonsdk.template.FixedExecutorTemplate;
import com.rice.riceapiclientsdk.client.ApiClient;
import com.rice.riceapiclientsdk.entity.User;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/test")
public class ClientController {
    @Resource
    private ApiClient apiClient;

    @GetMapping("/")
    public void testSDK() {
        User user = new User("wjj");
        String res = apiClient.getNameByPostUser(user);
        System.out.println(res);
    }
}
